import 'package:flutter/material.dart';
import 'package:test_flutter/utils/factory/Fit.dart';

class AboutPage extends StatefulWidget {
  final String title;
  AboutPage(this.title);
  @override
  AboutState createState() => new AboutState();
}

class AboutState extends State<AboutPage> {
  @override
  Widget build(BuildContext context) {
    return  Scaffold(
      backgroundColor: Colors.white,
      /* appBar: PreferredSize(
          child: Container(
            decoration: BoxDecoration(
                gradient: LinearGradient(colors: [
              Color(0xFF00E579),
              Color(0xFF00E585),
              Color(0xFF00E792),
              Color(0xFF00E8A4),
              Color(0xFF00ECBA)
            ])),
            child: new AppBar(
              primary: true,
              title: new Text(widget.title),
              backgroundColor: Colors.transparent,
            ),
          ),
          preferredSize: new Size(ScreenUtil().setWidth(1080), kToolbarHeight)),*/
      body: Center(
        child: Container(
          color: Colors.green,
          width: Fit.scaleX(500),
          height: Fit.scaleY(500),
          child: Center(
            child: Column(
              children: <Widget>[
                Text('适配',style: TextStyle(fontSize: Fit.scaleTextSize(36,true))),
                Text('你好啊',style: TextStyle(fontSize: Fit.scaleTextSize(36,true))),

                Text('篮球',style: TextStyle(fontSize: Fit.scaleTextSize(36,true))),

              ],
            ),
          ),
        ),
      ),
    );
  }
}
